/*
 * Created on Jun 9, 2004
 */
package com.scalar.chiptrack.operations.reports;

import java.util.ArrayList;
import java.util.LinkedHashMap;

import com.scalar.chiptrack.utils.StringUtils;

/**
 * @author Ravikanth
**/
public class WipFlush
{
	private String partNumber = null;
	private String vendor = null;
	private String lotNumber = null;
	private int fabQty = 0;
	private int waferStoreQty = 0;
	private int sortQty = 0;
	private int dieBankQty = 0;
	private int assemblyQty = 0;
	private int preTestQty = 0;
	private int testQty = 0;
	private int eOLQty = 0;
	private int tapeReelQty = 0;
	private int classStoreQty = 0;
	private int markPackQty = 0;
	private int fgQty = 0;
    private int backlogQty = 0;
    private int inTransitQty = 0;
    private int programReleaseQty = 0;
    private int fabOptionQty = 0;
    private int fpoQty = 0;
    private int ftQty = 0;
    private int total = 0;
	
	private int productId = 0;
	private int lotId = 0;
	private ArrayList childData = null;
	private LinkedHashMap childMap = null;
	private ArrayList products = null;
    private String process_Type = null;

	/**
	 * @return Returns the eOLQty.
	 */
	public int getEOLQty() {
		return eOLQty;
	}
	/**
	 * @param qty The eOLQty to set.
	 */
	public void setEOLQty(int qty) {
		eOLQty = qty;
	}
	/**
	 * @return Returns the preTestQty.
	 */
	public int getPreTestQty() {
		return preTestQty;
	}
	/**
	 * @param preTestQty The preTestQty to set.
	 */
	public void setPreTestQty(int preTestQty) {
		this.preTestQty = preTestQty;
	}
	/**
	 * @return Returns the tapeReelQty.
	 */
	public int getTapeReelQty() {
		return tapeReelQty;
	}
	/**
	 * @param tapeReelQty The tapeReelQty to set.
	 */
	public void setTapeReelQty(int tapeReelQty) {
		this.tapeReelQty = tapeReelQty;
	}
    /**
     * @return
     */
    public int getAssemblyQty()
    {
        return assemblyQty;
    }

    /**
     * @return
     */
    public int getClassStoreQty()
    {
        return classStoreQty;
    }

    /**
     * @return
     */
    public int getDieBankQty()
    {
        return dieBankQty;
    }

    /**
     * @return
     */
    public int getFabQty()
    {
        return fabQty;
    }

    /**
     * @return
     */
    public int getFgQty()
    {
        return fgQty;
    }

    /**
     * @return
     */
    public String getLotNumber()
    {
        return lotNumber;
    }

    /**
     * @return
     */
    public int getMarkPackQty()
    {
        return markPackQty;
    }

    /**
     * @return
     */
    public String getPartNumber()
    {
        return partNumber;
    }

    /**
     * @return
     */
    public int getSortQty()
    {
        return sortQty;
    }

    /**
     * @return
     */
    public int getTestQty()
    {
        return testQty;
    }

    /**
     * @return
     */
    public int getTotal()
    {
        return total;
    }

    /**
     * @return
     */
    public String getVendor()
    {
        return vendor;
    }

    /**
     * @return
     */
    public int getWaferStoreQty()
    {
        return waferStoreQty;
    }

    /**
     * @param i
     */
    public void setAssemblyQty(int i)
    {
        assemblyQty = i;
    }

    /**
     * @param i
     */
    public void setClassStoreQty(int i)
    {
        classStoreQty = i;
    }

    /**
     * @param i
     */
    public void setDieBankQty(int i)
    {
        dieBankQty = i;
    }

    /**
     * @param i
     */
    public void setFabQty(int i)
    {
        fabQty = i;
    }

    /**
     * @param i
     */
    public void setFgQty(int i)
    {
        fgQty = i;
    }

    /**
     * @param string
     */
    public void setLotNumber(String string)
    {
        lotNumber = string;
    }

    /**
     * @param i
     */
    public void setMarkPackQty(int i)
    {
        markPackQty = i;
    }

    /**
     * @param string
     */
    public void setPartNumber(String string)
    {
        partNumber = string;
    }

    /**
     * @param i
     */
    public void setSortQty(int i)
    {
        sortQty = i;
    }

    /**
     * @param i
     */
    public void setTestQty(int i)
    {
        testQty = i;
    }

    /**
     * @param i
     */
    public void setTotal(int i)
    {
        total = i;
    }

    /**
     * @param string
     */
    public void setVendor(String string)
    {
        vendor = string;
    }

    /**
     * @param i
     */
    public void setWaferStoreQty(int i)
    {
        waferStoreQty = i;
    }

    /**
     * @return
     */
    public int getLotId()
    {
        return lotId;
    }

    /**
     * @param i
     */
    public void setLotId(int i)
    {
        lotId = i;
    }

    /**
     * @return
     */
    public ArrayList getChildData()
    {
        return childData;
    }

    /**
     * @param list
     */
    public void setChildData(ArrayList list)
    {
        childData = list;
    }

    /**
     * @return
     */
    public LinkedHashMap getChildMap()
    {
        return childMap;
    }

    /**
     * @param map
     */
    public void setChildMap(LinkedHashMap map)
    {
        childMap = map;
    }

    /**
     * @return
     */
    public int getProductId()
    {
        return productId;
    }

    /**
     * @param i
     */
    public void setProductId(int i)
    {
        productId = i;
    }

    /**
     * @return
     */
    public ArrayList getProducts()
    {
        return products;
    }

    /**
     * @param list
     */
    public void setProducts(ArrayList list)
    {
        products = list;
    }

    public int getBacklogQty() {
        return backlogQty;
    }

    public void setBacklogQty(int backlogQty) {
        this.backlogQty = backlogQty;
    }

    public int getInTransitQty() {
        return inTransitQty;
    }

    public void setInTransitQty(int inTransitQty) {
        this.inTransitQty = inTransitQty;
    }

    public int getProgramReleaseQty() {
        return programReleaseQty;
    }

    public void setProgramReleaseQty(int programReleaseQty) {
        this.programReleaseQty = programReleaseQty;
    }

    public String getProcess_Type() {
        return process_Type;
    }

    public void setProcess_Type(String process_Type) {
        this.process_Type = process_Type;
    }


    public int getFabOptionQty() {
        return fabOptionQty;
    }

    public void setFabOptionQty(int fabOptionQty) {
        this.fabOptionQty = fabOptionQty;
    }

    public int getFpoQty() {
        return fpoQty;
    }

    public void setFpoQty(int fpoQty) {
        this.fpoQty = fpoQty;
    }

    public int getFtQty() {
        return ftQty;
    }

    public void setFtQty(int ftQty) {
        this.ftQty = ftQty;
    }
    //These getXXX() methods will convert numbers into US format
    public String getFormattedFabQty() {
        return StringUtils.getUSNumberFormat(fabQty);
    }

    public String getFormattedWaferStoreQty() {
        return StringUtils.getUSNumberFormat(waferStoreQty);
    }

    public String getFormattedSortQty() {
        return StringUtils.getUSNumberFormat(sortQty);
    }

    public String getFormattedDieBankQty() {
        return StringUtils.getUSNumberFormat(dieBankQty);
    }

    public String getFormattedAssemblyQty() {
        return StringUtils.getUSNumberFormat(assemblyQty);
    }

    public String getFormattedPreTestQty() {
        return StringUtils.getUSNumberFormat(preTestQty);
    }
    
    public String getFormattedEOLQty() {
        return StringUtils.getUSNumberFormat( eOLQty );
    }
    
    public String getFormattedTapeReelQty() {
        return StringUtils.getUSNumberFormat( tapeReelQty );
    }
    
    public String getFormattedTestQty() {
        return StringUtils.getUSNumberFormat(testQty);
    }

    public String getFormattedClassStoreQty() {
        return StringUtils.getUSNumberFormat(classStoreQty);
    }

    public String getFormattedMarkPackQty() {
        return StringUtils.getUSNumberFormat(markPackQty);
    }

    public String getFormattedFgQty() {
        return StringUtils.getUSNumberFormat(fgQty);
    }

    public String getFormattedTotal() {
            return StringUtils.getUSNumberFormat(total);
    }

    public String getFormattedBacklogQty() {
        return StringUtils.getUSNumberFormat(backlogQty);
    }

    public String getFormattedInTransitQty() {
        return StringUtils.getUSNumberFormat(inTransitQty);
    }

    public String getFormattedProgramReleaseQty() {
        return StringUtils.getUSNumberFormat(programReleaseQty);
    }

    public String getFormattedFabOptionQty() {
        return StringUtils.getUSNumberFormat(fabOptionQty);
    }
    public String getFormattedFpoQty() {
        return StringUtils.getUSNumberFormat(fpoQty);
    }
    public String getFormattedFtQty() {
        return StringUtils.getUSNumberFormat(ftQty);
    }

    /* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString()
	{	
		StringBuffer buf = new StringBuffer();
		buf.append (" Part Number : ").append ( partNumber );
		buf.append (" Vendor: ").append ( vendor );
		buf.append (" Lot: ").append ( lotNumber );
		buf.append (" Fab: ").append (fabQty);
		buf.append (" WS: ").append (waferStoreQty);
		buf.append (" Sort: ").append (sortQty);
		buf.append (" DB: ").append (dieBankQty);
		buf.append (" Assembly: ").append (assemblyQty);
		buf.append (" Test: ").append (testQty);
		buf.append (" CS: ").append( classStoreQty );
		buf.append (" MP ").append( markPackQty );
		buf.append (" FG: ").append( fgQty );
        buf.append (" InTrans: ").append( inTransitQty );
        buf.append (" ProgRel: ").append( programReleaseQty );
		buf.append (" Total: ").append( total ).append (" ]\n");
		return buf.toString();
	}

}
